package com.delivery.deliverysystem.pojo.DO;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @Author: Hxh
 * @Date: 2022/02/27/16:29
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Administrators {

    @ApiModelProperty("aid")
    @TableId(type = IdType.UUID)
    private String aid;
    @ApiModelProperty("用户名")
    private String username;
    @ApiModelProperty("姓名")
    private String fullName;
    @ApiModelProperty("身份(1表示老师，2表示学生)")
    private Integer identity;
    @ApiModelProperty("学校")
    private String school;
    @ApiModelProperty("手机号")
    private String phoneNumber;
    @ApiModelProperty("1为管理员，0为普通用户")
    private Integer flag;
    @ApiModelProperty("创建时间")
    @TableField(fill = FieldFill.INSERT)//在插入的时候自动填充
    private Date createTime;
    @ApiModelProperty("最后更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)////在插入和更新的时候自动填充
    private Date modifiedTime;
    @ApiModelProperty("逻辑删除")
    @TableLogic
    private Integer deleted;

    @ApiModelProperty("是否为测试  1测试  0不测试")
    private Integer isTest;
}
